#ifndef _BARTER_SERVER_DBQUERY_H_
#define _BARTER_SERVER_DBQUERY_H_

#include <string>
#include <map>

class DBQuery
{
private:
	struct Data
	{
		union
		{
			char* String;
			int Int;
			double Float;
		};
		char Type;
	};
	std::string fmtString;
	std::map<int, Data*> boundData;
public:
	~DBQuery();
	void SetFormatString(std::string);
	std::string GetFormatString() const;
	void BindData(int, int);
	void BindData(int, double);
	void BindData(int, std::string);
	std::string GetQuery();
	void Reset();
};

#endif // _BARTER_SERVER_DBQUERY_H_
